package com.miniapp.properties;


import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 接口权限配置类（专门用于绑定YAML配置）
 * @author author
 * @date 2025-09-02 15:32
 */
@Data
@Component
@ConfigurationProperties(prefix = "api.auth")  // 匹配配置的前缀 "api.auth"
public class ApiAuthProperties {
    // 字段名与YAML中的"whitelist"一致，自动绑定
    private List<String> whitelist;
}
